import Find from '@/views/Find.vue'
import Friend from '@/views/Friend.vue'
import MyMusic from '@/views/MyMusic.vue'

import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter) //Vue Router插件初始化

const router = new VueRouter({
    //routes 路由规则【们】
    //route 一条路由规则 {path: 路由路径, component: 路由组件}
    routes: [
        { path: '/find', component: Find },
        { path: '/friend', component: Friend },
        { path: '/myMusic', component: MyMusic }
    ],
    //link自定义高亮类名
    linkActiveClass: 'active',//配置模糊匹配的类名
    linkExactActiveClass: 'exact-active' //配置精确匹配的类名

})//创建路由对象

export default router